package com.ktkj.init.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class UpdatePasswordForm {

    @NotBlank(message = "旧密码不能为空！")
    @ApiModelProperty(value = "旧密码", example = "123456")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空！")
    @ApiModelProperty(value = "新密码", example = "123456789")
    private String newPassword;

    @NotNull(message = "id不能为空！")
    @ApiModelProperty(value = "id(修改时必须输入)", example = "1")
    private Long id;
}
